package com.hospital.pet.love.lovepethospital.dto.register;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * @author RoselleShaw
 * @create 2024-04-26 11:15
 */
@Data
@Schema(description = "预约挂号")
public class AddRegisterDto {

    @Schema(description = "挂号 ID", requiredMode = Schema.RequiredMode.AUTO)
    private Integer registerId;
    @Schema(description = "医生 ID", requiredMode = Schema.RequiredMode.REQUIRED)
    private Integer doctorId;
    @Schema(description = "宠物 ID", requiredMode = Schema.RequiredMode.REQUIRED)
    private Integer petId;
    @Schema(description = "预约时间（可选）", requiredMode = Schema.RequiredMode.AUTO)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private LocalDateTime orderDate;
}
